package com.achao.controller;

import com.achao.beans.dto.Result;
import com.achao.service.OpenFeignService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author: achao
 * @DateTime: 2022/10/15 22:12
 * @Description: TODO
 */

@Slf4j
@RestController
@RequestMapping("/feign")
public class OpenFeignController {

    @Resource
    private OpenFeignService openFeignService;

    @GetMapping("/name")
    public String name(){
       return openFeignService.name("哈哈哈哈");
    }

    @GetMapping("/test")
    public String test(){
        return openFeignService.hello();
    }

    @GetMapping("/result")
    public Result result(){
        return openFeignService.result();
    }
}
